﻿using System;
using System.Collections.Generic;
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
using Moq;

namespace Opo.Perspective.Core
{
    [TestFixture(Description = "Tests for Opo.Perspective.Core.CityInfo")]
    public class CityInfoTests
    {
        string _postalCode;
        string _cityName;

        [TestFixtureSetUp]
        public void Setup()
        {
            _postalCode = "12345";
            _cityName = "CityName";
        }

        [TestFixtureTearDown]
        public void Teardown()
        {

        }

        [Test]
        public void CanCreateCtiyInfoWithOneParameter()
        {
            ICityInfo cityInfo = new CityInfo(_cityName);
            Assert.That(cityInfo.Name, Is.EqualTo(_cityName));
            Assert.That(cityInfo.PostalCode, Is.EqualTo(""));
        }

        [Test]
        public void CanCreateCityInfoWithTwoParameters()
        {
            CityInfo cityInfo = new CityInfo(_cityName, _postalCode);
            Assert.That(cityInfo.Name, Is.EqualTo(_cityName));
            Assert.That(cityInfo.PostalCode, Is.EqualTo(_postalCode));
        }
    }
}
